﻿/*  ----------------------------------------------------------------------------
 *  DES
 *  ----------------------------------------------------------------------------
 *  File:       IDESServerService.cs
 *  Author:     nitinkoshy@gmail.com
 *  ----------------------------------------------------------------------------
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using DES.Common;

namespace DES.Server.Service
{
    /// <summary>
    /// this one is exposed to the other servers
    /// </summary>
    [ServiceContract]
    public interface IDESServerService : IDESService
    {
        [OperationContract(IsOneWay = true)]
        void QueueTask(ServerTask serverTask, DESServerInfo originatingServer);

        [OperationContract(IsOneWay = true)]
        void SetProcessedTask(ServerTask serverTask, DESServerInfo originatingServer);

        [OperationContract]
        int GetServerLoad();
    }

}
